package com.dating.core.ext;

import org.nutz.dao.entity.annotation.Id;
import org.nutz.json.Json;
import org.nutz.json.JsonFormat;

public abstract class Entity {

	@Id
	protected Integer id;

	public String toString() {
		return String.format("/*%s*/%s", super.toString(),
				Json.toJson(this, JsonFormat.compact()));
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
